# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=aerc
pkgver=0.4.0
pkgrel=0
pkgdesc="an email client for your terminal"
url="https://aerc-mail.org"
arch="all"
license="MIT"
depends="less ncurses"
makedepends="go scdoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/aerc/archive/$pkgver.tar.gz"

build() {
	make PREFIX=/usr
}

check() {
	go test ./...
}

package() {
	make install PREFIX=/usr DESTDIR="$pkgdir"
}
sha512sums="5017d483a589cfc15a81782e75174d38a0b82ebadfe91c0f8b7aec9ec93174029fe7ddf35200187481389b2e4051c42fb7c3b35ad834ca62e230cdb5a73b4449  aerc-0.4.0.tar.gz"
